<g:each in="${alunoInstance?.matriculas}" status="i" var="contratoInstance">
    <g:if test="${contratoInstance?.anulacao}">
    <table class="table table-bordered table-condensed">
        <thead>
            <tr>
                <th>
                    <center>
                        <h4>
                            <g:if test="${contratoInstance?.anulacao.motivo == 'Transferência' }" > 
                                <g:message code="anulacaoDeMatricula.tranferencia.label" default="Pede Transferência" />
                            </g:if>
                            <g:elseif test="${contratoInstance?.anulacao.motivo == 'Cancelamento' }" >
                                <g:message code="anulacaoDeMatricula.cancelamento.label" default="Pede Cancelamento de Matrícula" />
                            </g:elseif>
                        </h4>
                    </center>
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                  <div>
                    <span>
                        <b><g:message code="anulacaoDeMatricula.conrtato.label" default="ID do Contrato:" /></b>
                    </span>
                    <span >
                        ${contratoInstance?.id}
                    </span>
                    <span class="divider"><g:message code="span.divider" /></span>
                    <span>
                        <b><g:message code="anulacaoDeMatricula.data.label" default="Data:" /></b>
                    </span>
                    <span >
                        <g:formatDate date="${contratoInstance?.anulacao?.data}" />
                    </span>
                    <span class="divider"><g:message code="span.divider" /></span>
                    <span>
                        <b><g:message code="contrato.serie.label" default="Série:" /></b>
                    </span>
                    <span >${fieldValue(bean: contratoInstance?.turma, field: "serie")}</span>
                    <span class="divider"><g:message code="span.divider" /></span>
                    <span>
                        <b><g:message code="anulacaoDeMatricula.ensino.label" default="Ensino:" /></b>
                    </span>
                    <span >${fieldValue(bean: contratoInstance?.anulacao, field: "ensino")}</span>
                    <span class="divider"><g:message code="span.divider" /></span>
                  </div>
                </td>
            </tr>
        </tbody>
    </table>
    </g:if>
</g:each>
